/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package actions;

import gui.GUIUtils;
import gui.main.MainPanelGUIView;

import java.util.List;

import objects.data.ClusterData;
import utils.Utils;

/**
 *
 * @author simonk
 */
public class UpdateHosts {
	public static void comboBoxUpdate() {
		comboBoxUpdate(Utils.userInfo.cinfo);
	}
	public static void comboBoxUpdate(List<ClusterData> clusterDataList) {
		GUIUtils.MainPanel.clusterCombo.removeAllItems();
		for(ClusterData cluData : clusterDataList) {
			GUIUtils.MainPanel.clusterCombo.addItem(cluData.local_hostname+"@"+cluData.hostname);
		}
		Utils.userInfo.cinfo = clusterDataList;
	}
}
